package de.upb.aquarium.water;

import javax.media.opengl.GL;

import com.sun.opengl.util.GLUT;

import de.upb.aquarium.World;
import de.upb.aquarium.api.objects.General3DObject;

public class Teapot extends General3DObject {

	@Override
	public void paint(GL gl) {
		beforeRendering(gl);
		
		gl.glDisable(GL.GL_LIGHTING);
		
		GLUT glut = World.getInstance().getGLUT();
		gl.glDisable(GL.GL_TEXTURE_2D);
		
		gl.glColor3d(0.0, 1.0, 0.0);
		glut.glutSolidTeapot(1.0f);
		
		gl.glEnable(GL.GL_LIGHTING);
		
		afterRendering(gl);
	}

}
